Matthias Clasen [Mon, 25 May 2020 22:40:09 +0000 (18:40 -0400)]
docs: Use the right python
Matthias Clasen [Mon, 25 May 2020 16:48:10 +0000 (12:48 -0400)]
ci: Use fedora-docs for the doc build
Our doc build now uses pandoc, so use an image
that has it.
Matthias Clasen [Mon, 25 May 2020 16:45:29 +0000 (12:45 -0400)]
ci: Add a fedora-docs image
Split the fedora image into fedora-base (containing just
the packages) and fedora (adding the user setup), and add
a fedora-docs image that is adding pandoc on top of the
fedora-base image.
Matthias Clasen [Sun, 24 May 2020 18:25:25 +0000 (14:25 -0400)]
docs: Convert question index to markdown
With this, the expand_content_files list has been
completely converted to markdown files. Whats left
in content_files is man pages, and a few special
cases.
Matthias Clasen [Sun, 24 May 2020 18:20:42 +0000 (14:20 -0400)]
docs: Allow interrupted lists
We use such an interrupted, numbered list in the
q&a section, so tell pandoc to pay attention to
start numbers.
Matthias Clasen [Sun, 24 May 2020 15:42:52 +0000 (11:42 -0400)]
docs: Convert treeview and textview overview to markdown
Matthias Clasen [Sun, 24 May 2020 16:04:15 +0000 (12:04 -0400)]
docs: Allow influencing pandoc divisons
Arrange for files named section-foo.md to be turned
into docbook sections, while others get turned into
chapters. This is necessary to allow including such
content in chapters, since chapters in docbook don't
nest.
Matthias Clasen [Sun, 24 May 2020 15:12:56 +0000 (11:12 -0400)]
docs: Drop the glossary
It is very incomplete, somewhat outdated, and
we lack the resources to maintain it properly.
Matthias Clasen [Sun, 24 May 2020 15:07:45 +0000 (11:07 -0400)]
docs: Convert resources section to markdown
Matthias Clasen [Sun, 24 May 2020 14:57:52 +0000 (10:57 -0400)]
docs: Drop a long-stale file
The other_software.xml section has not been included in
the docs since 2.x, as far as I can tell. It was clearly
written before GIO existed.
Matthias Clasen [Sun, 24 May 2020 14:55:02 +0000 (10:55 -0400)]
docs: Convert platform sections to markdown
Matthias Clasen [Sun, 24 May 2020 04:22:31 +0000 (00:22 -0400)]
docs: Convert getting_started to markdown
As part of the conversion, give up on including
sources files from the examples directory, and
instead include the content directly. All include
mechanisms add complications. They were already
complicated with xml, and markdown is not making
things easier.
We already did that for fragments, and if you
make changes to these example sources, you
probably need to revise the surrounding text
anyway.
Matthias Clasen [Sun, 24 May 2020 04:08:58 +0000 (00:08 -0400)]
docs: Refresh the inspector screenshot
Matthias Clasen [Sun, 24 May 2020 04:04:36 +0000 (00:04 -0400)]
docs: Convert building, compiling, running to markdown
Matthias Clasen [Sun, 24 May 2020 01:41:15 +0000 (21:41 -0400)]
doc: Check for pandoc
Add an explicit check for pandoc, so we get a clear
error message if it is missing.
Matthias Clasen [Sun, 24 May 2020 01:32:35 +0000 (21:32 -0400)]
docs: Convert css overview to markdown
Matthias Clasen [Sun, 24 May 2020 01:33:25 +0000 (21:33 -0400)]
docs: Be more careful when expanding abbreviations
We must not expand #symbol in the middle of a url,
where it is probably a fragment identifier. Restrict
problem.
Matthias Clasen [Sat, 23 May 2020 01:56:39 +0000 (21:56 -0400)]
wip: Include markdown content, via pandoc
Use pandoc to convert freestanding markdown files to docbook for
inclusion in the generated docs, and use bits and pieces of
gtk-doc code to continue expanding typical gtk-doc abbreviations.
The new tool for markdown -> docbook is a python script called
gtk-markdown-to-docbook.
The markdown dialect is specified via a list of pandoc extension
in gtk-markdown-to-docbook. It includes header annocations,
definition lists and tables, among other things.
This commit converts the 3 overview chapters (drawing, input
handling and actions) and the migration guide to markdown
syntax. Other files that are still listed in content_files
can be converted later.
This commit adds a pandoc dependency.
Timm Bäder [Mon, 25 May 2020 08:36:29 +0000 (10:36 +0200)]
adwaita: move backdrop box shadows to .csd
Fixes #2781
Timm Bäder [Sun, 24 May 2020 15:14:18 +0000 (17:14 +0200)]
compare-render: Fix some memory leaks
Timm Bäder [Sun, 24 May 2020 10:06:07 +0000 (12:06 +0200)]
gl renderer: Improve clipping code
don't render a clip to a texture if the new clip does not intersect with
any of the corners of the currently rounded clip.
Fixes #2770
Timm Bäder [Sun, 24 May 2020 06:31:55 +0000 (08:31 +0200)]
gl renderer: Refactor render_clipped_child
Timm Bäder [Sun, 24 May 2020 06:31:40 +0000 (08:31 +0200)]
gl renderer: Cache whether clips is rectilinear
Timm Bäder [Sat, 23 May 2020 04:37:18 +0000 (06:37 +0200)]
applicationwindow: Simplify measure implementation
We already chain up first thing in this function, so no need to do it
again.
Timm Bäder [Sat, 23 May 2020 04:35:50 +0000 (06:35 +0200)]
window: Remove private _get_shadow_width()
Unused now.
Timm Bäder [Sat, 23 May 2020 04:35:27 +0000 (06:35 +0200)]
applicationwindow: Stop querying shadow width
don't need to do this anymore.
Piotr Drąg [Sun, 24 May 2020 13:07:03 +0000 (15:07 +0200)]
Update Polish translation
Florentina Mușat [Sun, 24 May 2020 10:48:29 +0000 (10:48 +0000)]
Update Romanian translation
Florentina Mușat [Sun, 24 May 2020 10:37:15 +0000 (10:37 +0000)]
Update Romanian translation
Emin Tufan Çetin [Sat, 23 May 2020 08:50:36 +0000 (08:50 +0000)]
Update Turkish translation
Matthias Clasen [Sat, 23 May 2020 00:05:16 +0000 (00:05 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
gtk-demo: Fix the dnd demo drop highlight
See merge request GNOME/gtk!1958
Matthias Clasen [Fri, 22 May 2020 23:46:56 +0000 (23:46 +0000)]
Merge branch 'no-app-menu' into 'master'
Drop the app menu
Closes #2731
See merge request GNOME/gtk!1951
Matthias Clasen [Fri, 22 May 2020 22:52:56 +0000 (18:52 -0400)]
gtk-demo: Fix the dnd demo drop highlight
We want the drop highlight to be around the label,
not around the item containing it, so move the drop
target gesture to the right widget.
Matthias Clasen [Fri, 22 May 2020 22:46:51 +0000 (18:46 -0400)]
docs: Mention app menus in the migration guide
Matthias Clasen [Fri, 22 May 2020 22:19:59 +0000 (22:19 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!1957
Matthias Clasen [Fri, 22 May 2020 21:37:40 +0000 (21:37 +0000)]
Merge branch 'BUG_filechooserbutton_remote_GTK4' into 'master'
FileChooserButton: query 'display name' also for unbookmarked files
Closes #1966
See merge request GNOME/gtk!1725
Matthias Clasen [Fri, 22 May 2020 21:06:30 +0000 (17:06 -0400)]
gtkapplication: Drop app menu support
Drop apis and code related to appmenus from
both GtkApplication and GtkApplicationWindow.
We still keep the menubar support, since it
is needed for system integration on OS X.
Fixes: #2731
Matthias Clasen [Fri, 22 May 2020 21:05:10 +0000 (17:05 -0400)]
print-editor: Stop using appmenu apis
The appmenu-related GtkApplication apis are going away.
Matthias Clasen [Fri, 22 May 2020 20:52:31 +0000 (16:52 -0400)]
inspector: Drop app-menu support
Don't add app menu to the object tree anymore;
this property is going away.
Matthias Clasen [Fri, 22 May 2020 20:36:20 +0000 (16:36 -0400)]
examples: Stop using appmenu apis
The appmenu-related GtkApplication apis are going away.
Matthias Clasen [Fri, 22 May 2020 20:19:49 +0000 (16:19 -0400)]
gtk-demo: Stop using appmenu apis
The appmenu-related GtkApplication apis are going away.
Matthias Clasen [Fri, 22 May 2020 21:19:35 +0000 (17:19 -0400)]
fixed: Change coordinate apis to doubles
We are using floating point for coordinates
everywhere now, so be consistent here.
This commit also changes the implementation of
gtk_fixed_get_child_position to work with
non-translation child transforms.
Matthias Clasen [Fri, 22 May 2020 19:53:18 +0000 (15:53 -0400)]
testsuite: Re-add the sizegroups-evolution reftest
It doesn't seem to cause problems in ci anymore.
Matthias Clasen [Fri, 22 May 2020 20:59:44 +0000 (20:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
text: Avoid clash of preedit and placeholder
See merge request GNOME/gtk!1955
Matthias Clasen [Fri, 22 May 2020 19:38:02 +0000 (15:38 -0400)]
gtk-demo: Improve rotation in the dnd demo
Make the drag icon preserve the rotation, and improve
placement for the editor and for dnd to take the offset
into account.
Timm Bäder [Fri, 22 May 2020 17:50:29 +0000 (19:50 +0200)]
gl renderer: don't pretend all transform nodes support being transformed
It doesn't work in the general case. The transform handling could use a
general overhaul though.
Fixes #2773
Timm Bäder [Fri, 22 May 2020 17:37:15 +0000 (19:37 +0200)]
gl renderer: Fix some off-by-one and rounding errors in the shadow code
Take 24
Fixes #2759
Matthias Clasen [Fri, 22 May 2020 18:06:00 +0000 (14:06 -0400)]
gtk-demo: Improve editing in the dnd demo
Add a scale for the angle, make the edits apply immediately,
and keep the item visible.
Matthias Clasen [Fri, 22 May 2020 17:25:17 +0000 (13:25 -0400)]
gtk-demo: Improve drag icon handling in dnd example
Make the opacity change only apply to the 'ghost' of
the item, not the drag icon.
Matthias Clasen [Fri, 22 May 2020 17:17:59 +0000 (13:17 -0400)]
gtk-demo: Fix entry position in dnd demo
gtk_fixed_get_child_position does not work if children
have transforms that are not just 2D translations.
Use gtk_widget_translate_coordinates instead.
Matthias Clasen [Fri, 22 May 2020 16:35:18 +0000 (12:35 -0400)]
gtk-demo: Reorganize the dnd demo
Introduce a CanvasItem widget to make things a
bit less ad hoc.
Matthias Clasen [Fri, 22 May 2020 16:25:23 +0000 (12:25 -0400)]
main: Keep the target widget alive
We are passing the event to the tooltip handle_event
function at the very end. Unfortunately, the target_widget
may have already died at that point. We prevent that
by taking a ref during propagage_event, but the tooltip
code was outside of that. Keep a ref until the very
end ot prevent crashes.
Matthias Clasen [Fri, 22 May 2020 14:50:09 +0000 (10:50 -0400)]
gtk-demo: Use proper drag icons in the dnd demo
Use a widget paintable to make the drag icon appear
in two places at once.
Matthias Clasen [Fri, 22 May 2020 14:49:12 +0000 (10:49 -0400)]
dragsource: Actually use the paintable
We were just ignoring a paintable provided by
gtk_drag_source_set_icon().
Matthias Clasen [Fri, 22 May 2020 14:48:49 +0000 (10:48 -0400)]
colorswatch: Remove a redundant include
Matthias Clasen [Fri, 22 May 2020 03:11:47 +0000 (23:11 -0400)]
reftests: Fix the background-origin test
This was broken when I accidentally removed
one of the buttons.
Matthias Clasen [Fri, 22 May 2020 02:42:53 +0000 (22:42 -0400)]
text: Avoid clash of preedit and placeholder
Take preedit into account when determining the
visibility of placeholder text.
Matthias Clasen [Fri, 22 May 2020 14:20:35 +0000 (14:20 +0000)]
Merge branch 'fix-printbackend' into 'master'
Build media backends with common_cflags and export the symbol
Closes #2771
See merge request GNOME/gtk!1956
Qiu Wenbo [Fri, 22 May 2020 08:45:44 +0000 (16:45 +0800)]
Build media backends with common_cflags and export the symbol
Fixes: #2771
Yuri Chornoivan [Fri, 22 May 2020 05:47:20 +0000 (05:47 +0000)]
Update Ukrainian translation
Matthias Clasen [Fri, 22 May 2020 01:59:34 +0000 (01:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #227, #328, and #1010
See merge request GNOME/gtk!1954
Ondrej Holy [Fri, 22 May 2020 01:14:47 +0000 (21:14 -0400)]
trash-monitor: Rate limit updates
Trash monitor queries info from gvfsd-trash after each file monitor
change which can be problematic when too many changes happen in
a short time. Let's rate limit the number of queries...
Fixes: #1010
Matthias Clasen [Fri, 22 May 2020 00:37:54 +0000 (20:37 -0400)]
range: Treat lower and upper limit the same
When clamping values to be within the range of
the adjustment, treat the lower and upper limit
the same.
Fixes: #328
Matthias Clasen [Thu, 21 May 2020 23:04:27 +0000 (19:04 -0400)]
windowhandle: Drop Move and Resize from the fallback menu
The expected behavior is that we trigger a keyboard-driven
interactive move or resize operation. But that doesn't work
with common compositors like mutter or weston, so lets not
expose non-working menuitems.
Matthias Clasen [Thu, 21 May 2020 22:59:58 +0000 (18:59 -0400)]
tooltip: Avoid criticals
It is possible that the target widget is already
unparented at the time that we call the tooltips
handle_event function. Quietly return in that case,
no need to emit a critical.
Matthias Clasen [Thu, 21 May 2020 22:15:14 +0000 (18:15 -0400)]
accelgroup: Use Unicode in string literals
Its 2020, non-ASCII characters are not taboo anymore.
Matthias Clasen [Thu, 21 May 2020 22:05:43 +0000 (18:05 -0400)]
Differentiate keypad keysyms in accelerators
When displaying accelerators, differentiate keypad
symbols with a 'KP' prefix. Fixing a 17 year old bug.
Update expected output in accelerator tests.
Fixes: #227
Matthias Clasen [Thu, 21 May 2020 21:31:17 +0000 (21:31 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!1953
Matthias Clasen [Thu, 21 May 2020 20:24:56 +0000 (16:24 -0400)]
gtk-demo: Fix breakage in a css demo
This is fallout from container api changes. We
were treating a GtkOverlay like a GtkBox, which
it isn't.
Matthias Clasen [Thu, 21 May 2020 20:24:20 +0000 (16:24 -0400)]
gtk-demo: Plug another leak
We were leaking the builder in the css blendmodes demo,
by creating a ref cycle. This was showing up as
the list entry not going back to upright after
closing the window.
Matthias Clasen [Thu, 21 May 2020 20:23:42 +0000 (16:23 -0400)]
gtk-demo: Plug another leak
We were leaking the builder in the revealers demo,
by creating a ref cycle. This was showing up as
the list entry not going back to upright after
closing the window.
Matthias Clasen [Thu, 21 May 2020 19:41:00 +0000 (15:41 -0400)]
gtk-demo: Plug another leak
We were leaking the builder in the cursors demo,
by creating a ref cycle. This was showing up as
the list entry not going back to upright after
closing the window.
Matthias Clasen [Thu, 21 May 2020 19:39:46 +0000 (15:39 -0400)]
gtk-demo: Plug a leak
We were leaking the builder in the builder demo,
by creating a ref cycle. This was showing up as
the list entry not going back to upright after
closing the window.
Timm Bäder [Wed, 20 May 2020 06:01:48 +0000 (08:01 +0200)]
gl renderer: Fix blurred outset shadow slicing
Take 23.
Fixes #2759
Matthias Clasen [Wed, 20 May 2020 20:57:34 +0000 (20:57 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!1950
Matthias Clasen [Wed, 20 May 2020 20:13:30 +0000 (20:13 +0000)]
Merge branch 'wip/exalm/window-polish' into 'master'
window: Fix tiled style class names
See merge request GNOME/gtk!1949
Matthias Clasen [Wed, 20 May 2020 19:07:58 +0000 (15:07 -0400)]
mediastream: Volume is a double
Another obvious copy-paste error in the property
declarations of GtkMediaStream. Volume should be
a double, with range [0, 1], not a boolean.
Matthias Clasen [Wed, 20 May 2020 19:05:13 +0000 (15:05 -0400)]
mediastream: Some properties were meant to be readonly
These properties aren't covered by set_property(), and
it doesn't make sense to do so. They were just declared
as read-write by mistake.
Matthias Clasen [Wed, 20 May 2020 19:04:44 +0000 (15:04 -0400)]
mediacontrols: Make volume control react to has-audio
Matthias Clasen [Wed, 20 May 2020 18:01:07 +0000 (18:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
gdk: Short-circuit some surface setters
See merge request GNOME/gtk!1947
Alexander Mikhaylenko [Wed, 20 May 2020 17:10:32 +0000 (22:10 +0500)]
window: Fix tiled style class names
This should fix the round corners on tiled windows.
Timm Bäder [Wed, 20 May 2020 17:06:37 +0000 (17:06 +0000)]
Merge branch 'wip/baedert/single-node-window' into 'master'
single node GtkWindow
See merge request GNOME/gtk!1863
Timm Bäder [Wed, 20 May 2020 08:58:06 +0000 (10:58 +0200)]
window: Use GtkNative's check_resize everywhere
Timm Bäder [Wed, 20 May 2020 08:11:37 +0000 (10:11 +0200)]
window: Create default titlebar directly in realize
Instead of having two functions that are only called from one place but
look like they can be called from anywhere.
Timm Bäder [Wed, 20 May 2020 07:36:21 +0000 (09:36 +0200)]
update documentation for new style classes and node names
Timm Bäder [Wed, 20 May 2020 07:33:07 +0000 (09:33 +0200)]
Adwaita: style updates for new window node hierarchy
Timm Bäder [Wed, 20 May 2020 07:32:44 +0000 (09:32 +0200)]
window: Fix the surface coordinates everywhere
Timm Bäder [Wed, 20 May 2020 07:32:18 +0000 (09:32 +0200)]
window: Inline gtk_window_configure() into only caller
And remove the prototype from gtkwindowprivate.h
Timm Bäder [Wed, 20 May 2020 07:31:17 +0000 (09:31 +0200)]
window: Rewrite edge region detection
Timm Bäder [Wed, 20 May 2020 07:30:01 +0000 (09:30 +0200)]
window: Fix computing the opaque region
We need to look at the surface transform here as well now.
Timm Bäder [Wed, 20 May 2020 07:28:27 +0000 (09:28 +0200)]
window: Avoid using GtkStyleContext in subtract_decoration_corners
We can do this by just using the GtkCssStyle these days.
Timm Bäder [Wed, 20 May 2020 07:27:37 +0000 (09:27 +0200)]
window: Fix get_surface_transform()
Look at the shadow here.
Timm Bäder [Wed, 20 May 2020 07:24:00 +0000 (09:24 +0200)]
window: Set overflow to HIDDEN
It really doesn't make sense for the general window to allow drawing
outside of it.
Timm Bäder [Wed, 20 May 2020 07:22:41 +0000 (09:22 +0200)]
inspector: Fix overlay coordinates
Get the native transform only once, for all overlays. Unfortunately we
have to undo this for the updates overlay since that one gets values
in surface coordinates.
Timm Bäder [Wed, 20 May 2020 07:10:14 +0000 (09:10 +0200)]
inspector: Don't offset layout overlay too much
We already do this earlier.
Timm Bäder [Wed, 20 May 2020 07:09:34 +0000 (09:09 +0200)]
Window: Remove extra_input_region API
This is unused.
Timm Bäder [Wed, 20 May 2020 07:07:24 +0000 (09:07 +0200)]
Call all window subclasses "window"
And add style classes to differentiate them
Timm Bäder [Wed, 20 May 2020 06:37:21 +0000 (08:37 +0200)]
testsuite: Remove window decoration nodes from reference results
Timm Bäder [Sat, 2 May 2020 08:25:12 +0000 (10:25 +0200)]
window: Remove decoration node
Timm Bäder [Sat, 2 May 2020 06:45:19 +0000 (08:45 +0200)]
window: Don't care about shadow in measure()